package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JiuyuanMapper;
import com.ruoyi.system.domain.Jiuyuan;
import com.ruoyi.system.service.IJiuyuanService;
import com.ruoyi.common.support.Convert;

/**
 * 救援服务 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class JiuyuanServiceImpl implements IJiuyuanService 
{
	@Autowired
	private JiuyuanMapper jiuyuanMapper;

	/**
     * 查询救援服务信息
     * 
     * @param jiuyuanId 救援服务ID
     * @return 救援服务信息
     */
    @Override
	public Jiuyuan selectJiuyuanById(Integer jiuyuanId)
	{
	    return jiuyuanMapper.selectJiuyuanById(jiuyuanId);
	}
	
	/**
     * 查询救援服务列表
     * 
     * @param jiuyuan 救援服务信息
     * @return 救援服务集合
     */
	@Override
	public List<Jiuyuan> selectJiuyuanList(Jiuyuan jiuyuan)
	{
	    return jiuyuanMapper.selectJiuyuanList(jiuyuan);
	}
	
    /**
     * 新增救援服务
     * 
     * @param jiuyuan 救援服务信息
     * @return 结果
     */
	@Override
	public int insertJiuyuan(Jiuyuan jiuyuan)
	{
	    return jiuyuanMapper.insertJiuyuan(jiuyuan);
	}
	
	/**
     * 修改救援服务
     * 
     * @param jiuyuan 救援服务信息
     * @return 结果
     */
	@Override
	public int updateJiuyuan(Jiuyuan jiuyuan)
	{
	    return jiuyuanMapper.updateJiuyuan(jiuyuan);
	}

	/**
     * 删除救援服务对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJiuyuanByIds(String ids)
	{
		return jiuyuanMapper.deleteJiuyuanByIds(Convert.toStrArray(ids));
	}
	
}
